package com.learning.security.dal.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 权限表
 * </p>
 *
 * @author xxx
 * @since 2024-10-04
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("system_right")
@Schema(name = "RightDO", description = "权限表")
public class AdminRightDO extends BaseDO {

    private static final long serialVersionUID = 1L;

    @Schema(description = "菜单ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "接口名称")
    @TableField("name")
    private String name;

    @Schema(description = "权限标识")
    @TableField("permission")
    private String permission;

    @Schema(description = "接口类型")
    @TableField("type")
    private Integer type;

    @Schema(description = "显示顺序")
    @TableField("sort")
    private Integer sort;

    @Schema(description = "菜单状态")
    @TableField("status")
    private Integer status;
}
